package com.anuo.app.common.entity;


public class LocationFilter extends FilterBase {
    private double longitudeMin;
    private double longitudeMax;
    private double latitudeMin;
    private double latitudeMax;
    private double myLongitude;
    private double myLatitude;
    private int distance;//单位千米
    private double distanceDouble;

    private String longitudeMinStr;
    private String longitudeMaxStr;
    private String latitudeMinStr;
    private String latitudeMaxStr;
    private String myLongitudeStr;

    public double getDistanceDouble() {
        return distanceDouble;
    }

    public void setDistanceDouble(double distanceDouble) {
        this.distanceDouble = distanceDouble;
    }

    public String getLongitudeMinStr() {
        return longitudeMinStr;
    }

    public void setLongitudeMinStr(String longitudeMinStr) {
        this.longitudeMinStr = longitudeMinStr;
    }

    public String getLongitudeMaxStr() {
        return longitudeMaxStr;
    }

    public void setLongitudeMaxStr(String longitudeMaxStr) {
        this.longitudeMaxStr = longitudeMaxStr;
    }

    public String getLatitudeMinStr() {
        return latitudeMinStr;
    }

    public void setLatitudeMinStr(String latitudeMinStr) {
        this.latitudeMinStr = latitudeMinStr;
    }

    public String getLatitudeMaxStr() {
        return latitudeMaxStr;
    }

    public void setLatitudeMaxStr(String latitudeMaxStr) {
        this.latitudeMaxStr = latitudeMaxStr;
    }

    public String getMyLongitudeStr() {
        return myLongitudeStr;
    }

    public void setMyLongitudeStr(String myLongitudeStr) {
        this.myLongitudeStr = myLongitudeStr;
    }

    public double getLongitudeMin() {
        return longitudeMin;
    }

    public void setLongitudeMin(double longitudeMin) {
        this.longitudeMin = longitudeMin;
    }

    public double getLongitudeMax() {
        return longitudeMax;
    }

    public void setLongitudeMax(double longitudeMax) {
        this.longitudeMax = longitudeMax;
    }

    public double getLatitudeMin() {
        return latitudeMin;
    }

    public void setLatitudeMin(double latitudeMin) {
        this.latitudeMin = latitudeMin;
    }

    public double getLatitudeMax() {
        return latitudeMax;
    }

    public void setLatitudeMax(double latitudeMax) {
        this.latitudeMax = latitudeMax;
    }

    public double getMyLongitude() {
        return myLongitude;
    }

    public void setMyLongitude(double myLongitude) {
        this.myLongitude = myLongitude;
    }

    public double getMyLatitude() {
        return myLatitude;
    }

    public void setMyLatitude(double myLatitude) {
        this.myLatitude = myLatitude;
    }

    public int getDistance() {
        if (distance == 0) {
            distance=10;//默认10千米
        }
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }
}
